<template name="creator_table_cell">
	<span class="creator_table_cell slds-grid slds-grid_align-spread field-{{fieldDataType}}">
		<div class="{{#unless is_detail_view}}slds-truncate {{/unless}}{{#unless isMarkdown field.type}}cell-container {{else}}editor-preview-side {{/unless}}">
			{{#each cellData}}
				{{#if isTable}}
					<div class="cellGridContainer slds-table_edit slds-hint-parent"></div>
				{{else if isImages}}
					{{#each value}}
						<img class="creator-table-cell-image" src="{{../baseUrl}}/{{this}}"/>
					{{/each}}
				{{else if isImage}}
					<img class="creator-table-cell-image" src="{{baseUrl}}/{{value}}"/>
				{{else if isUrl}}
					<a onclick="{{getOpenWindowScript(href)}}">{{value}}</a>
				{{else if isEmail}}
					<a href="mailto:{{value}}">{{value}}</a>
				{{else if isBoolean}}
					{{#if checked}}
						<span class="slds-icon_container slds-icon-utility-check slds-current-color" title="{{value}}">
							{{> steedos_icon class="slds-icon_x-small" source="utility-sprite" name="check"}}
							<span class="slds-assistive-text">{{value}}</span>
						</span>
					{{else}}
						<span class="slds-icon_container slds-icon-utility-steps slds-current-color" title="{{value}}">
							<span class="slds-assistive-text">{{value}}</span>
						</span>
					{{/if}}
				{{else if isSelects}}
					{{#each items}}
						<span title="{{label}}" class="{{selectCellColorClass ../..}}">{{label}}</span>
					{{/each}}
				{{else}}
					{{#if href}}
						{{#if itemActionName}}
							<a title="{{value}}" class="link-detail list-item-link-{{id}} list-item-link-action" data-action-name={{itemActionName}}>{{value}}</a>
						{{else}}
							{{#if openWindow}}
								<a onclick="{{getOpenWindowScript(href)}}" title="{{value}}" class="link-detail list-item-link-{{id}}">{{value}}</a>
							{{else}}
								<a href="{{href}}" title="{{value}}" class="link-detail list-item-link-{{id}}">{{value}}</a>
							{{/if}}
						{{/if}}
					{{else}}
						<span title="{{value}}">{{{value}}}&nbsp;</span>
					{{/if}}
				{{/if}}
			{{/each}}
			{{#if is_detail_view}}
				{{#if isExtraField}}
					<div class="cell-extra-field-container"></div>
				{{/if}}
			{{/if}}
		</div>
		{{#if showEditIcon}}
			<span class="triggerContainer">
				<div class="{{#if editable}}table-cell-edit{{/if}}" tabindex="-1" title="{{_ 'edit'}}">
					{{> steedos_button className="slds-cell-edit__button slds-m-left_x-small" iconClassName=(eidtIconClassName editable)
						iconCategory="utility" iconName=(eidtIconName editable) variant="icon" title=(_ 'edit')}}
				</div>
			</span>
		{{/if}}
	</span>
</template>